<?php if ($GLOBALS['warning_queue'] -> is_warning()) { ?>

<div class="warning">
	<div id="warning-title">
		<?php echo translate('Error'); ?>:
	</div>
	<ul>
	<?php 
	$warning_tbl = $GLOBALS['warning_queue'] -> get_warning_tbl();	
	foreach ($warning_tbl as $idw => $warning) {
		echo '<li>' . $warning['message'] . '</li>';
	}
	?>
	</ul>
</div>

<?php
}
?>